<%@ Page Language="VB" StylesheetTheme="default" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="QuestionPreview.aspx.vb" Inherits="Modules_Questionnaires_QuestionPreview" title="Question Preview Page" %>
<%@ Register Src="~/Secure/Controls/ansLoader.ascx" TagName="ansLoader" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table id="Table1" cellpadding="2" cellspacing="2" width="100%">
        <tr>
            <td colspan="3">
                <strong><font size="2">QUESTION PREVIEW</font></strong></td>
            <td align="right" colspan="1">
                <asp:HyperLink ID="hlBack" runat="server" NavigateUrl="QuestionManager.aspx" ForeColor="Blue">Back</asp:HyperLink></td>
        </tr>
        <tr>
            <td colspan="4" valign="top">
                <hr size="1" width="100%" /></td>
        </tr>
        <tr>
            <td rowspan="1" valign="top" width="15" height="400">
                &nbsp;</td>
            <td valign="top" height="300">
                <table width=800 border=0 cellpadding=5 cellspacing=0 >
                    <asp:Repeater ID="repQuestionnaire" runat="server">
                        <ItemTemplate>
                                <tr>
                                    <td valign=top width="55" rowspan=3 nowrap=nowrap>Q# <%#Eval("SortID")%></td>
                                    <td valign=top class="tdQuestion" colspan=6 ><strong><%#Server.HtmlEncode(Eval("question"))%></strong></td>
                                </tr>
                                <tr>
                                    <uc1:ansLoader id="ucAnswer" runat="server"  Config='<%#Eval("config") %>' QuestionID ='<%#Eval("id") %>' />
                                </tr>
                                <tr style="font-size:0;height:1px">
                                    <td width=40>&nbsp;</td>
                                    <td width=180>&nbsp;</td>
                                    <td width=40>&nbsp;</td>
                                    <td width=180>&nbsp;</td>
                                    <td width=510>&nbsp;</td>
                                    <td width=10>&nbsp;</td>
                                </tr>
                        </ItemTemplate>  
                        <AlternatingItemTemplate>
                                <tr bgcolor=aqua>
                                    <td valign=top width="55" rowspan=3 nowrap=nowrap>Q# <%#Eval("SortID")%></td>
                                    <td valign=top class="tdQuestion" colspan=6 ><strong><%#Server.HtmlEncode(Eval("question"))%></strong></td>
                                </tr>
                                <tr bgcolor=aqua>
                                    <uc1:ansLoader id="ucAnswer" runat="server"  Config='<%#Eval("config") %>' QuestionID ='<%#Eval("id") %>' />
                                </tr>
                                <tr bgcolor=aqua style="font-size:0;height:1px">
                                    <td colspan=6>&nbsp;</td>
                                </tr>
                        </AlternatingItemTemplate>
                        <FooterTemplate>
                            <tr>
                                <td colspan=6 align=right >
                                    <asp:Button ID="butTest" runat="server" Text="Test" CommandName="cmdTest"/>
                                    <asp:Button ID="butBack" runat="server" Text="Go Back" CausesValidation=false CommandName="cmdBack" />
                                </td>
                            </tr>
                        </FooterTemplate>
                    </asp:Repeater>
                </table>
                <asp:Label ID="lblTest" runat="server" Text="Valid answers has been received." Font-Bold="True" ForeColor="Blue" Visible="False"></asp:Label>
            </td>
            <td colspan="2"  valign="top">
            </td>
        </tr>
    </table>
</asp:Content>

